import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/constants/font_family.dart';
import 'package:flutter_eve_plugin/constants/font_weight.dart';
import 'package:flutter_eve_plugin/model/ye_xiu/checkpoint/stageinfo.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class CheckpointTitleDescWidget extends StatelessWidget {
  final CheckpointStageInfo info;
  const CheckpointTitleDescWidget({Key key, this.info}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: EdgeInsets.only(left: setRatio(26), right: setRatio(18)),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Text(
            'boss攻略：',
            style: TextStyle(
                fontFamily: FontFamily.PINGFANG,
                fontWeight: FontWeightCustom.PF_Bold,
                fontSize: setTextSp(14),
                color: Color(0x9fFFFFFF)),
          ),
          Text(
            info?.stageBasics?.configInfo?.desc ?? '',
            maxLines: 3,
            overflow: TextOverflow.ellipsis,
            style: TextStyle(
                fontFamily: FontFamily.PINGFANG,
                fontWeight: FontWeightCustom.PF_Medium,
                fontSize: setTextSp(11),
                color: Color(0x8fFFFFFF)),
          )
        ],
      ),
    );
  }
}
